package com.ray.depot.service;

import com.ray.depot.table.entity.MaterialLibrary;
import com.zjhc.flyhong.common.function.operator.LoginUser;
import com.zjhc.flyhong.common.web.Result;

public interface MaterialLibraryService {
    /**
     * 新增物料库位关联
     * @param params
     * @param user
     * @return
     */
	Result<Object> addMaterialLibrary(MaterialLibrary params, LoginUser user);
    /**
     * 取消物料库位关联
     * @param params
     * @param user
     * @return
     */
	Result<Object> deleteMaterialLibrary(MaterialLibrary params, LoginUser user);
	/**
	 * 查询存在库位
	 * @param materialId
	 * @param warchouseId 
	 * @return
	 */
	MaterialLibrary selectLibrary(String materialId, String warchouseId );
	/**
	 * 删除关联
	 * @param libraryId
	 * @param user
	 */
	void deleteMaterialLibraryByLibraryId(String libraryId, LoginUser user);

	

}
